package com.example.demo.singleton

import io.vertx.core.Vertx
import io.vertx.core.VertxOptions

/**
 * @author Xu Haidong
 * @date 2023/4/20 10:31
 */
object VertxHolder {

  var vertx: Vertx? = null

  fun setInstance(opt: VertxOptions) {
    this.vertx = Vertx.vertx(opt)
  }

  fun getInstance(): Vertx? {
    return this.vertx
  }
}
